package com.atguigu.pojo;

import java.math.BigDecimal;
import java.util.Date;

//实现bean对象,对应着数据库 字段
public class Server {
    private String id;
    private String name;
    private String ip;
    private String ports;
    private String freePorts;
    private String cpu;
    private String memory;
    private String disk;
    private Date endTime;
    private String systemVersion;
    private String serverTypeId;
    private String use;
    private String masterId;

    public Server() {
    }

    public Server(String id, String name, String ip, String ports, String freePorts, String cpu, String memory, String disk, Date endTime, String systemVersion, String serverTypeId, String use, String masterId) {
        this.id = id;
        this.name = name;
        this.ip = ip;
        this.ports = ports;
        this.freePorts = freePorts;
        this.cpu = cpu;
        this.memory = memory;
        this.disk = disk;
        this.endTime = endTime;
        this.systemVersion = systemVersion;
        this.serverTypeId = serverTypeId;
        this.use = use;
        this.masterId = masterId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPorts() {
        return ports;
    }

    public void setPorts(String ports) {
        this.ports = ports;
    }

    public String getFreePorts() {
        return freePorts;
    }

    public void setFreePorts(String freePorts) {
        this.freePorts = freePorts;
    }

    public String getCpu() {
        return cpu;
    }

    public void setCpu(String cpu) {
        this.cpu = cpu;
    }

    public String getMemory() {
        return memory;
    }

    public void setMemory(String memory) {
        this.memory = memory;
    }

    public String getDisk() {
        return disk;
    }

    public void setDisk(String disk) {
        this.disk = disk;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getSystemVersion() {
        return systemVersion;
    }

    public void setSystemVersion(String systemVersion) {
        this.systemVersion = systemVersion;
    }

    public String getServerTypeId() {
        return serverTypeId;
    }

    public void setServerTypeId(String serverTypeId) {
        this.serverTypeId = serverTypeId;
    }

    public String getUse() {
        return use;
    }

    public void setUse(String use) {
        this.use = use;
    }

    public String getMasterId() {
        return masterId;
    }

    public void setMasterId(String masterId) {
        this.masterId = masterId;
    }

    @Override
    public String toString() {
        return "Server{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", ip='" + ip + '\'' +
                ", ports='" + ports + '\'' +
                ", freePorts='" + freePorts + '\'' +
                ", cpu='" + cpu + '\'' +
                ", memory='" + memory + '\'' +
                ", disk='" + disk + '\'' +
                ", endTime=" + endTime +
                ", systemVersion='" + systemVersion + '\'' +
                ", serverTypeId='" + serverTypeId + '\'' +
                ", use='" + use + '\'' +
                ", masterId='" + masterId + '\'' +
                '}';
    }
}
